//
//  FenRunCell.m
//  NewPro
//
//  Created by RYX on 2019/5/7.
//  Copyright © 2019 何荧红. All rights reserved.
//

#import "FenRunCell.h"
#import "NewWalletList.h"

@implementation FenRunCell

+ (instancetype)tempWithTableView:(UITableView *)tableView{
    
    FenRunCell *cell = [tableView dequeueReusableCellWithIdentifier:@"CELL"];
    if (!cell) {
        
        ClassName
        cell = [[[NSBundle mainBundle] loadNibNamed:className owner:self options:nil] objectAtIndex:0];
    }
    
    return cell;
}

#pragma mark - 选择银行卡
- (IBAction)onSelectBankBtn:(UIButton *)sender {
    
    if (self.delegate && [self.delegate respondsToSelector:@selector(onSelectBankBtn)]) {
        
        [self.delegate onSelectBankBtn];
    }
}

#pragma mark - 提现
- (IBAction)onTiXianBtn:(UIButton *)sender {
    
    if (self.delegate && [self.delegate respondsToSelector:@selector(onTiXianBtn)]) {
        
        [self.delegate onTiXianBtn];
    }
}

#pragma mark - 我要购机
- (IBAction)onBuyBtn:(UIButton *)sender {
    
    if (self.delegate && [self.delegate respondsToSelector:@selector(onBuyBtn)]) {
        
        [self.delegate onBuyBtn];
    }
}

- (void)awakeFromNib {
    [super awakeFromNib];
    
    _tf.keyboardType = UIKeyboardTypeNumberPad;
    [_tf.rac_textSignal subscribeNext:^(NSString *str) {
        
        [NewWalletList sharedInstance].fr_money = str;
        NSLog(@"");
    }];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
